namespace Collaboris.Saf.Actions.Wss.Tests.Generated
{
    using Engine.Report;

    using Microsoft.VisualStudio.TestTools.UnitTesting;
    using Saf.Tests;
    using Entities;
    using File;

    using SharePoint.Wss.Files;

    [TestClass]
    public class CopyFileTest
    {
        /// <summary>
        /// This test was originally generated but has now been tested and verfiied by MJ
        /// </summary
        [TestMethod]
        public void CopyFile_Test()
        {
            WSSTestAssistant<CopyFile, CopyFileInfo> copyfile =
                    new WSSTestAssistant<CopyFile, CopyFileInfo>(TestEnvironment.PublishingSite, 
                        "CopyFileTestWeb", "BLANKINTERNET#0");

            using (copyfile)
            {
                MacroReport doReport = copyfile.DoMacro();

                Assert.IsNotNull(SPFileHelper.GetFile(copyfile.FirstEntity.DestinationFileUrl));

                // please note -- I have now disabled the undo on this action as it was doing some incorrect code
                
             }
        }

    }
}
